import loginRequest from '@/utils/isLoginRequest'
// ?status=0考试模块---获取我的考试
export function getMyTestListApi(data) {
	return loginRequest({
		url: `/info/api/web/competition/myexamlist`,
		method: 'GET',
		params: data
	})
}
export function getMyCompListApi(data) {
	return loginRequest({
		url: `/info/api/web/competition/mycompetitionlist`,
		method: 'GET',
		params: data
	})
}
//考试模块-- - 报名
export function entryTestApi(data) {
	return loginRequest({
		url: `/info/api/web/competition/signup`,
		method: 'GET',
		params: data
	})
}

// 考试模块--1--开始考试competitionId = 2
export function startTestApi(data) {
	return loginRequest({
		url: `/info/api/web/userexam/startexam`,
		method: 'GET',
		params: data
	})
}

//√GET考试模块--2--获取试卷题型结构
export function getTestDetailsApi(data) {
	return loginRequest({
		url: `/info/api/web/userexam/getuserexaminfo`,
		method: 'GET',
		params: data
	})
}
//考试模块--3--获取题目详情 包括是否选择了答案
export function getTestQuestionApi(data) {
	return loginRequest({
		url: `/info/api/web/userexam/getquestioninfo`,
		method: 'GET',
		params: data
	})
}
//考试模块--4--录入答案
export function upLoadAnswerApi(data) {
	return loginRequest({
		url: `/info/api/web/userexam/uploadanswer`,
		method: 'GET',
		params: data
	})
}

//考试模块--5--结束考试
export function upLoadTestApi(data) {
	return loginRequest({
		url: `/info/api/web/userexam/endexam`,
		method: 'GET',
		params: data
	})
}
//考试模块--5--结束考试
export function getMyScoresApi(data) {
	return loginRequest({
		url: `/info/api/web/competition/examScores`,
		method: 'GET',
		params: data
	})
}